package j_graphics;
// 프레임에 직접 사각형 그리기

import java.awt.*;
import java.awt.event.*;

class MyFrame extends Frame
{
	public MyFrame()
	{
		setSize(300,300);
		setTitle("Graphics");
	}
	
	public void paint(Graphics g)
	{
		g.drawRect(50,50,100,100);
	}
	
	public static void main(String args[])
	{
		MyFrame f=new MyFrame();
		f.setVisible(true);
	}
}